<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>文件框之按钮对齐 - jQuery EasyUI 演示</title>
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../demo.css">
	<script type="text/javascript" src="../../jquery.min.js"></script>
	<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
	<h2 title="Button Align on FileBox">文件框之按钮对齐</h2>
	<p title="Change the button align to the left or right of filebox.">　　变更文件框按钮的对齐方式为左对齐或右对齐。注：此组件不支持移动设备。</p>
	<div style="margin:20px 0 40px 0;"></div>
	<span title="Select Button Align:">选择按钮的对齐方式：</span>
	<select onchange="changeAlign(this.value)">
		<option value="left">左对齐</option>
		<option value="right" selected>右对齐</option>
	</select>
	<div style="margin:20px 0;"></div>
	<div class="easyui-panel" style="width:100%;max-width:400px;padding:30px 60px;">
		<input id="fb" class="easyui-filebox" style="width:100%" data-options="prompt:'请选择一个文件...',buttonText:'&nbsp;选择&nbsp;'">
	</div>

	<script type="text/javascript">
		function changeAlign(align){
			$('#fb').filebox({buttonAlign:align});
		}
	</script>
</body>
</html>